// import { createApp } from 'vue'
// import './style.css'
// import App from './App.vue'
// createApp(App).mount('#app')

import { createApp } from 'vue'
import ArcoVue from '@arco-design/web-vue';
import ArcoVueIcon from '@arco-design/web-vue/es/icon';
import App from './App.vue';
import '@arco-design/web-vue/dist/arco.css';

import './style/index.css'

import router from './router/index.js'
import http from './utils/request'

const app = createApp(App);

app.config.globalProperties.$http = http;

import Echarts from 'vue-echarts'
import * as echarts from 'echarts'

app.component('e-charts', Echarts)
// app.config.globalProperties.$echarts = echarts

// function disableRightClickAndF12(event) {
//     if (event.type === 'contextmenu' || (event.type === 'keydown' && event.key === 'F12')) {
//         event.preventDefault();
//     }
// }

app.use(ArcoVue);
app.use(ArcoVueIcon);
app.use(router);
app.mount('#app');

// document.addEventListener('contextmenu', disableRightClickAndF12);
// document.addEventListener('keydown', disableRightClickAndF12);